package com.woniu.dao;

import com.woniu.pojo.DynamicComment;
import org.apache.ibatis.annotations.Select;

public interface DynamicCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DynamicComment record);

    int insertSelective(DynamicComment record);

    DynamicComment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DynamicComment record);

    int updateByPrimaryKey(DynamicComment record);

    @Select(value = "select count(id) from community_dynamic_comment where cdc_dynamic_id = #{id}")
    Integer selectCountById(Integer id);
}